ForEach<T> Method

Summary
Extension method provides a foreach like wrapper for IEnumerable.
Syntax
C#
C++/CLI
public static void ForEach<T>( 
   this IEnumerable<T> source, 
   Action<T> action 
) 
[ExtensionAttribute()] 
public: 
static void ForEachgeneric<typename T> 
(  
   IEnumerable<T^>^ source, 
   Action<T^>^ action 
)  

Parameters

source
The source enumeration

action
The action to perform.

Type Parameters

T
The IEnumerable object to iterate over.

Requirements

Target Platforms

Help Version 22.0.2023.2.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.